package com.yz.mcd.view.impl;

import android.app.Activity;
import android.graphics.Color;
import android.view.Gravity;
import android.widget.TextView;

import com.yz.mcd.view.BasePager;

/**
 * 模式
 *
 * Created by Maverick on 2017/4/26.
 */

public class PatternPager extends BasePager{

    public PatternPager(Activity activity) {
        super(activity);
    }

    @Override
    public void initData() {

        System.out.println("模式初始化");

        //要给帧布局填充一个布局对象
        TextView view = new TextView(mActivity);
        view.setText("模式");
        view.setTextColor(Color.RED);
        view.setGravity(Gravity.CENTER);
        view.setTextSize(30);

        flContent.addView(view);

        //修改页面标题
        tvTitle.setText("模式");
    }
}
